package cn.wolfcode.crm.util;

import java.util.HashMap;
import java.util.Map;

//报表转换的分组名称
public class Dictionary {
    //理赔报表字典
    public static final Map<String,Object> COMPENSATION_CHART = new HashMap<>();

    //销售报表字典
    public static final Map<String,String> SALE_MAP = new HashMap<>();
    static {
        //理赔报表
        COMPENSATION_CHART.put("e.username","业务员");
        COMPENSATION_CHART.put("o.name","保险机构");
        COMPENSATION_CHART.put("DATE_FORMAT(com.compensationDate,'%Y-%m')","理赔月份");
        COMPENSATION_CHART.put("DATE_FORMAT(com.compensationDate,'%Y-%m-%d')","理赔日期");

        //销售报表
        SALE_MAP.put("e.name","销售人员");
        SALE_MAP.put("org.name","保险机构");
        SALE_MAP.put("p.productName","产品名称");
        SALE_MAP.put("DATE_FORMAT(ins.beginDate,'%Y-%m')","保单月份");
        SALE_MAP.put("DATE_FORMAT(ins.beginDate,'%Y-%m-%d')","保单年份");
    }
}
